package com.dkts.oil.web.vo.request;

import com.dkts.oil.web.vo.request.subReq.ObstacleType;
import com.dkts.oil.web.vo.request.subReq.SqlWhere;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@Schema(description = "储备库选址请求参数")
public class OilCustomTankRequest implements Serializable{

    @Schema(description  = "储备库的面积，单位平方米" ,example = "1000")
    @NotNull(message = "area不能为空")
    @Min(value = 0, message = "area不能小于0")
    private Double surfaceArea;

    @Schema(description  = "点线面的障碍物数据集合，支持类型：Point，Polygon" )
    private List<ObstacleType> obstacle;

    @Schema(description  = "选址区域边界，如机场：Point，Polygon")
    private ObstacleType addressArea;

    @Schema(description  = "推荐数量，按照面积最大" ,example = "2")
    private Integer number=2;

    @Schema(description  = "默认规则" )
    private List<SqlWhere>  rules;
}
